Refactored so that categories no longer belong to users