Tag - referential integrity constraint in sql