Account for changes made in cw_error, cw_new and cw_dumpscan.
Make a primary key and index for cw_error.