update mongo connection