Filtered Dynamic Tags

One other thing I see in your code is that you are combining the use of a Dataset and of a Wix Data query which is going to cause conflicts.

See the Search a Database example to see how to combine conditions in a query.