Update relation structure with category (Add delete cascade)