Let's get back to the original problem.
You say you read serial numbers with a sensor, and want to look up TinyDB tags by the incoming serial numbers, but you never get a match.
So there are these things that might be going wrong ...
The serial numbers never arrive from the sensor,
The serial numbers aren't in your TinyDB tags, or are coded weird,
The serial numbers arrive from the sensor, but are coded weird.
I gave you a dump procedure to answer the second hypotheses, by seeing what's in TinyDB.
At this point, if you have actually seen what is in TinyDB (which I am not sure of, by the typos in your copy of my procedure),
the next step is to display the sensor reading of the serial number and screen print it.
Wrap the serial number in quotes, so we can see if there is anything extra riding along.
I do NOT mean typing a serial number into a block.
I mean capturing a serial number from the sensor into a global variable or label,
then displaying its contents in the Blocks Editor using a right-click-DoIt ,
taking a screen shot, and posting it here.
This mismatch can not be diagnosed without the Do It shot.
ABG