Mysqldump refactored to handle --skip-opt -c dumps