changed mongo config to uri