Code inserts multiple records to table