Changing sql insert from inserting individual records to inserting all records at once.