Fix updating programs.

Same problem as deleting programs, we need to remove the extra data that
we added before trying to update the row.