Execute a statement, returning a cursor. For internal use only.

def execute(self, stmt, args):
        """
        Execute a statement, returning a cursor. For internal use only.
        """
        self.logger(stmt, args)
        with self.cursor() as cursor:
            cursor.execute(stmt, args)
            return cursor