Two small problems caused by splitting the database

I saw some people have similar problems in the forum, and some people suggested that tags should be independent elements that do not depend on the database.

Currently, this problem can be partially solved by creating a global smart group. I have an immature idea to share with you…

I’m a beginner in script, just don’t know if this idea is feasible~