DatasetMetadataUpdater: do not redundantly add stored relations

Fix #622