Update rails and gems
Remove unused files
Refactor database.yml.sample