bugfixes, usage of mysqldump instead of mysql