Configuring the database to use postgres and adding changes to Gemfile