Moved the database connection out of the function block and into the app block.
Merge branch 'master' of https://github.com/brianhaines/FlaskServer