refactoring supplier for restructured berkeley db storage.