Berkley db creation of training data