Close dbm db correctly.
Fix paginator.
Fix tests.