add code to find proper database URL whether on Heroku or OpenShift