Heroku compatible queries
Backup of app.py with old queries