Sets up connection inside celery task to avoid using the same across processes