Altered current view SQLAlchemy query syntax.