bugfix for dbgen script