Update to use PostgreSQL

Update Gemfile and database.yml to use PostgreSQL.