Initial insert_batch code.  Not tested