added another method to indexeddb and more updates