update sample app to do crud ops

this can be onliner :-)

```
KeyPair.all.inject({}) { |r, v| r[v.key]=v.value }.to_s
```