And one function UpgradeTVDatabaseSchema() located in dbcheck.cpp.
MythTV's Configurable widgets also do save and restore their values from the database automagically when used in MythTV's window classes.