Fixing with database category table design