Add pg and thin for heroku app.
Refactor ui