Move karma_tool to Qpsmtpd::DB

Tested manually with karma_tool which has no test coverage