working on mongo connection