added validation features to Mysqldump functions