fix/optimize mariadb-to-mysql and mysql-to-mariadb script