fixed sql and celery