Implemented lazy fetching of categories for category table