Added a Database class and updated app.py to use it.
Merge branch 'master' of https://github.com/mplorentz/smoke-signals