Refactored category adder to create new categories if they dont exist