code: public void swapAccounts(Database other) {
          Account otherRoot = other.rootAccount;
          other.rootAccount = rootAccount;
          rootAccount = otherRoot;
          boolean otherDirty = other.dirty;
          other.dirty = dirty;
          dirty = otherDirty;
          HashMap<String, String> otherGlobalSettings = other.globalSettings;
          other.globalSettings = globalSettings;
          globalSettings = otherGlobalSettings;
      }
docs: Is is so that the after an database is loaded, we can reuse this object
  This does not swap listeners.
  
  @param other - the other database to swap with