Establish separate database connection for the worker process