store counters with IndexedDB
rename file