Fixed mongo connection issue