Added a script to upgrade old-style reg dbs.