Generate insert statement