Grouping Inserts into a single statement in a batch

Improving batching perf by delaying the sql script building.