Adding configuration for heroku. Adding some code changes for postgres database