TreeViewItemService.cs refactor to requirements about TreeViewItem id and ability to connect to db only twice