update branches set parentNoteId = 'none' where branchId = 'root'