setup mongo connection on invalidate_cache script