fix a to_a problem, finish DB format for util script