update Gemfile and database config file