add postgres db
minor change in app.rb
review and integrate code, add paginator