add ids to insert statementsq