mongoose connection for worker and cleanup