Simplify result API
First implementation of DB API

We use bottle.py to implement part of the API.
Deletions are not implemented yet, events and
comparisons are also missing.