throw if metaDb is incorrect