videodb: use triggers to delete items from link tables