Yes, declarative_base() allows us to use the declarative SQLAlchemy syntax for creating tables. Then below, we simply add the db_session's query facilities to Base so that we can do User.query().all() instead of db_session.query(User).all()