Merged configs, fixed upgrade_database

Merged Config and RomConfig, and fixed Unknown Version exception when a
empty database is checked for updates.