Added parsing of mongo uri for heroku