Compare TinyDB values with ListView values?


I need to find a way to store my list selections to a TinyDB and then change the color of the list item that was choosen.

If that doesn’t make sense, consider the following image; I have a GoogleSheet as a Database, from which I’m fetching my data, a listview, from which I’m presenting the data and a TinyDB in which I save my data. Now, I have tested my blocks, they work, I can change the label of my screen to my last selection, but I can’t compare the values that I’m fetching with the ones I’ve chosen.

So, is there a way to fix that?