getItem(id){
var rd;
let obj = this.db.transaction(['ord'],"readwrite").objectStore('ord');
let res = obj.get(id);
res.onsuccess =function(){
rd = this.result;
console.log(rd); //good
};
console.log(rd); // undefined
return rd;
}