DBMetadata was cloned too early.
Fix initialized attribute inside one constructor of DBMetadata.
DataDefinitions are now cloned.