Utilities for berkeleyDB