update gemfile, database.yml and delete unnecessary files