fn update_version(path: &Path) -> Result<(), Error>
Writes current database version to the file. Creates a new file if the version file does not exist yet.