Fix dump database script