Fix gemfile.
Fix database.
Add rvm config files.