Use 'readwrite' instead of IDBTransaction.READ_WRITE.