fixed db dump tool