Move local Db type out to namespace scope.