#251 Fix restore script to restore referenced datalynx and view ids