Write mongodb connection settings to environment json.