fix dump db script