Update exception to non deprecated

IDBDatabaseException (or mozIDBDatabaseException) seems to be obsolete according to this https://developer.mozilla.org/en-US/docs/Web/API/IDBDatabaseException and should be replaced by DomException.