fixes to make thunderdome use a local berkley db
fix for class double import issue, fixed unit tests