Connect to mongodb database via env variable