fix bug in sqlutils when adding ids to a new table