code: async def query(self, stmt, *args):
          
          with (await self.application.db.cursor()) as cur:
              await cur.execute(stmt, args)
              return [self.row_to_obj(row, cur) for row in await cur.fetchall()]
docs: Query for a list of results.
  
          Typical usage::
  
              results = await self.query(...)
  
          Or::
  
              for row in await self.query(...)