[db] do not have Db depend on Logger; fix typos introduced by glibc glitch