improved MP-DBM support

A lot of the MP-DBM stuff is broken because multiple people have changed multiple interfaces since I wrote it last year. Also, I haven't moved all of the MP-DBM code into the main repo yet. In this PR I partially fix both problems.