add create and index functionality for categories