replaced mongodb url with env variable