refactor categories to use ancestry gem