moving mongo db conn check into worker script