treating each SQLStatement as a single transaction