correctly setting mongo connection properties