Update NodeDeleted.sql

Oracle does not have a simple auto-increment for ids, so we should get the sequence number and then insert it explicitly. The optional insert was failing because the id column was null, causing problems later on.