add index on categories