making changes to removeMatt() to prevent foreign key cascade violation