added pg to the gemfile for postgres. Also added the database.yml file to access the postgres db deployed on heroku