initial upgrade workaround

in case user loads db saved with old id system, attempt to upgrade it;
this logic will probably be removed/replaced as needed to support simple
upgrade scenarios.