Change: add purgeDB api method.

Various test cleanup.
1.1.0