localStorage added to maintain version number of indexedDB