Refactor persisted_version_exists? to use where and count
Use meta data file