Reiterating GET request in DB

Hello everyone!
I would like to reiterate the GET request to a database to check if a string I tell Alexa is in the table column.
For example, when I start the skill, Alexa asks me my name.
Once I told it, the skill should look up my name in the DB and reply “Hi!” if it finds it or “I’m sorry, I don’t know who you are” if it doesn’t.

I have only managed to do this a certain number of times using the “Transform to Variables” form in the API block

and a Condition block,

but I should don’t know the number of elements in the table. The skill should search from first to last until it has found (or not) my name.

I hope I was clear.

You can help me?

I think this will help you