fix the db_create script

with the code changes from the large refactoring with
1) introducing the blueprints and 2) using a function to
create the app, we need to instantiate the app context
explicitly for flask_sqlalchemy to work.