Separate settings of celery and pgsql in tasks.py

To integrate with Docker, it is better to separate settings of celery and PostgreSQL.