Updated update and delete triggers