Implement insertBatch functionality for faster inserts