Automatic database updater

The database format will most likely continue to change, and this will
make those changes easier to deal with.