returning rowids of inserted and updated rows