Server side of TreeNotes