indexeddb: added default error handler to database object