clean up QueryFactory API to make setLastInsertIdNames() its own method