configure mongo connection