add storeSync function to ensure data synced to IDB store
add debug statements for store functions
Merge pull request #665 from mykmelez/store-sync

add storeSync function to ensure data synced to IDB store