db wip, not working
More db-wip
Even more wip. Now it works.