build mongo uri for easier heroku deployment