avoid dup key error by only inserting tag associations that don't already exist