rewrite db layer
examples/hello: update db-related code
Merge branch 'redo-db-layer'