code: def _ns_query(self, session):
          
          return session.query(ORMJob).filter(ORMJob.app == self.app,
                                              ORMJob.namespace == self.namespace)
docs: Return a SQLAlchemy query that is already namespaced by the app and namespace given to this backend
          during initialization.
          Returns: a SQLAlchemy query object