Fix statement preparation in batch (No longer use SqlQuery at batch creation)