update Gemfile and database config