refactored recommendation function

Merge branch 'HEAD' of https://github.com/cramja/stocktracker.git

Conflicts:
	db.sqlite3
Merge branch 'HEAD' of https://github.com/cramja/stocktracker.git