works with dev version of flask-sqlalchemy
working example with database access from worker