code: def query(self, sql: str, args: tuple = None):
          
  
          with self._cursor() as cursor:
              log.debug('Running SQL: ' + str((sql, args)))
              cursor.execute(sql, args)
              return cursor.fetchall()
docs: Execute a SQL query with a return value.