Tag master data management in sql