[db] some first attempt stuff