Add admin checking to database consistency check

This will allow upgrades from older versions to go more smoothly and
prevent issues like multiple head admins.