Changed application - adding postgres database and rails_12factor gem - to make it work with heroku