#787: Implement EAV data model in 'db_save_dataset'

Resolves #787.