Added autocommit = true to rollback method.