Tweaked current view's SQLAlchemy syntax.