Fix Verb/db because UNSAFEDbSelectAll is deleted.
Fix RewriteFileWithRecords; it was reading not-yet-existing rev for old records.