update database and gemfile config