Add category and category_id to items.
Make sort reverse.
Move categories to categories table.
Relation between category and item.
It will be fixed.