code: def Query(self, sql_query):
      
      results = {}
  
      try:
        self._connection = sqlite.connect(self.name)
        self._connection.execute("PRAGMA journal_mode=%s" % self.journal_mode)
        self._cursor = self._connection.cursor()
        results = self._cursor.execute(sql_query).fetchall()
  
      except sqlite.Error as error_string:
        logging.warning("SQLite error %s", error_string)
  
      return results
docs: Query the database file.