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

This reverts commit eabb6cf0d527080946e998933596040bbd38a47e.