further work on sqlite wrapper (wip)