[Tags]: check duplicated tag during insert or update