Added Gitignore change for database.yml and example database.yml file
Refactored recommender logic from models into a separate class.