Update the name of the type field of category, since 'type' is a reserved word.