I have added the following into to the code for the database insertion. I have added the following to insert into the database. Trouble is it adds 2 new entries each time. Will try saving to an array as suggested though. Thanks for the link, very helpfull.