Refactored category graph code into LocalCategoryDao