Extract out database.
Make it a flask app.