update sample app to do crud ops

no need for save/find, active_record should handle that with this one-liner

```
KeyPair.update(params['id'], value: params['value']) 
```