Adding postgres friendly support for heroku