Create recommender.py

New version of recommender. Now works with database rather than with the stubs class.