Flask, Celery, SQLAlchemy integration