added pg and rails factor for heroku