fixing mongo connection