let action_of_string = function
  "0" -> Insert
| "1" -> Delete
| _ -> Update