revert database and gemfile