Use URL form configuration for postgresql

Needed for deployment on heroku.