'Runs the given SQL code blindly'

def run_sql(self, sql):

    self.admin_connection.select_db(self.name)
    cursor = self.admin_connection.cursor()
    try:
        cursor.execute(sql)
    except (MySQLdb.ProgrammingError, MySQLdb.OperationalError):
        self.admin_connection.rollback()
        return False
    return True
