take example from flask-sqlalchemy site and make it work with local db