I think it would make more sense to just have a function that returns a DBM, rather than making this a separate class. This doesn't implement anything other than __init__, so it's not really a new kind of object.
You can still call functions from yaml with the !obj tag, they just need to return an object at the end.