Update Gemfile and database configuration