updated gemfile and database config for postgres