made the isFavorite function check against the model instead of doing sql statement, as that somehow did not work as expected

closes #2, as invalid sql entries will not be used to produce positive favorite results anymore