code: def query(self, query, fetchall=False, **params):
          
          with self.get_connection() as conn:
              return conn.query(query, fetchall, **params)
docs: Executes the given SQL query against the Database. Parameters can,
          optionally, be provided. Returns a RecordCollection, which can be
          iterated over to get result rows as dictionaries.