Added H2 to if/else sections of batch inserts and updates.