properly handling inTransaction flag in MySQLConnection