Add parent id upon new snippet creation