mongo connection improved