Updating the repair script

Earlier library changes made on this branch won't affect existing CIDER dbs unless all childless items are forced to update their date_from and date_to fields. Changing the repair script so that this happens, when run.

Applying the same change to the accession number field as well, as a target-of-opportunity improvement.