Move DBM functions to Qpsmtpd::DB

Insofar as the greylisting plugin has good test coverage, this is tested not to break the greylisting plugin.  I still plan on adding some coverage to Qpsmtpd::DB, probably after I add Redis support.2