added a batchInsert method to QueryExecutor

Lifted from you-know-where, simplified & stripped of any extraneous details.