Revert "minadbd: remove dead code"

This reverts commit 5691eaa96e8edd3e6255f22bad96540e605a9ab6.