Added parent id to categories