Moved mongodb url into config file and use environment variable