Fix a SQLAlchemyism in the web code