I am doing offline DB connectivity in my page using HTML5 IndexedDB concepts.. But Initially, I want to fetch large datas to store it in my IndexedDb, so for that purpose, I
From what I understand in your question, you are just using indexeddb like a cache layer in case the db goes done. What I would do is the following.
In case you are working online a save of your data should exist out af 2 actions. Saving to your service (SQL server) and save to your indexeddb.
In case when you are offline I would do 2 operation. On is still updating your indexeddb, but I would add an extra object store where you save all of your operation that have to be preformed on your service. Once back online, you can processes them one by one.