Update history rows when a contact or contact row is deleted.