make more smart the ddms db dump script