Create & migrate scripts for version 47 of the config db. These create a cfg_type table, constrains cfg_config's
config_type field to use a type name specified in cfg_type, and populates the newly created cfg_type table with
distinct config type names from cfg_config.