def METHOD_NAME(self, sql, params=None, commit=True):
    logger.debug((sql, params))
    with __exception_wrapper__:
        cursor = self.cursor()
        cursor.execute(sql, params or ())
    return cursor