add: DB manager

old & incomplete code forgotten