update gemfile and database.yml for postgres