Added pg gem.
Changed database.yml to use postgresql.