dojox.sql("DROP TABLE IF EXISTS DOCUMENTS"); this._createDb(); dojo.forEach(data, function(record){ dojox.sql("INSERT INTO DOCUMENTS (fileName, content) VALUES (?, ?)", record.fileName, record.content); }); this._documents = data; dojox.off.sync.finishedDownloading(true, null);