new db: new directory api, wip
wip