added code for Gemfile and database config changes