I have two very similar functions (I will refactor later), one works as intended (searchDB) and the other doesn\'t (showFavourites). I would like both of them to update the