Add autocommit information to AbstractQuery by introducing new AutocommitQuery