Added functions to help with upgrading the way data is stored.