set celery default task aware of app context; periodic_task decorator should be used instead of celery's one.

(running task in app context also ensures no db session is stuck 'in transaction' while worker is waiting for next task)