fixing mongo connection manager