Fixes certain instances of database corruption

`archiveSize` is used as the size of an `ArchiveInfo` struct, not an `archive` struct, make sure we're getting the size of the right struct type.