add category custom fields, moved to their own section.
upgrade script compatible with 1.8.1 version
fix some issues