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.
The current API endpoint data doesn't match the document structure in the frontend logic. So I introduced a mapping function but it has not been called into the code yet as this needs a major refactoring to do.