fixed mongo connection