my normal code about learning berkeley db