function getObjectStore(store_name, mode) {
    var tx = db.transaction(store_name, mode);
    return tx.objectStore(store_name);
  }
@param {string} store_name
@param {string} mode either "readonly" or "readwrite"