The navigation pane now matches the document structure from database, but breadcrumbs bar became broken, not yet fixed. Added check to folder creation so that subfolders cannot be created in parent folders that don't exist.