Hello

I'm trying to get some data stored locally using IndexedDB. Below I'm I have a simple example with which I'm trying to get the onupgradeneeded event to fire

Code:
<html>
<head>
<script>

var indexedDB=window.indexedDB||window.webkitIndexedDB||window.mozIndexedDB||window.msIndexedDB;
var request = indexedDB.open("mydb",2),    
     customerData=[
           {ssn:"444-44-4444",name:"Bill",age:35,email:"bill@company.com"},      
           {ssn:"555-55-5555",name:"Donna",age:32,email:"donna@home.org"}
    ];

request.onerror = function(event){
       alert("ERROR") ;
};
request.onupgradeneeded = function(event) {
        alert("UPGRADE NEEDED") ;
        var objectStore = db.createObjectStore("customers",{keyPath:"ssn"});
        objectStore.createIndex("name","name",{unique:false});
        objectStore.createIndex("email","email",{unique:true});

        for(var i in customerData){
                objectStore.add(customerData[i]);
        }
} ;
request.onsuccess = function(e) {
        alert("SUCCESS") ;
}
</script>
</head>
</html>
I tried to change the version number but whatever I try onupgradeneeded is never called/fired. Any suggestions why ?

cheers
Luca