Fix database dump script