Minimal Flask/SQLAlchemy app for developing a simple query language