Find similar rows in a table

In the event of button click to save into tinydb,
Use one varaible to catch tag the tag.
And use one if block + Is in the list .

So it will tell you whether the tag is existing or not. If it exists the as you said enable the button else save the values into tinydb