bug fixes

Fixing problem with RAW Query with INSERT Multiple rows when a
transaction is active. #2592