fixed db datagen scripts