solved the problem of referential integrity violation
(Foreign key issues.Resolution)