Experimenting with subqueries

heavily WIP
Merge branch 'master' of github.com:shrayasr/learning-flask-sqlalchemy