code: async function() {
        log.debug("saving generator database");
        this.fireDataEvent("saveDatabase", this.__db);
        await qx.tool.compiler.utils.Json.saveJsonAsync(this.getDbFilename(), this.__db)
          .then(() => this.__resManager && this.__resManager.saveDatabase());
      }
docs: Saves the database