Use environment variable for MongoDB url and move config to separate file