I still find it bonkers reading passport doesn't validate it against it some centralised database. Like, $1 in your bank account and a credit card is more advanced than a passport.
(There are national-level databases, but presumably not every country has access to every other country's database.)
Countries don't need access to database. They need to validate public key / hashsum is valid (or something along those lines).