creating category sequence and adding to categories table