Update sql statements for insertion.