code: def where_session_id(cls, session_id):
          
          try:
              session = cls.query.filter_by(session_id=session_id).one()
              return session
          except (NoResultFound, MultipleResultsFound):
              return None
docs: Easy way to query by session id