Fix issue with heroku style db URLs