add url parsing for redistogo
separate conn
fix heroku url