towards berkeley db for persistence