upload/download sql, improve exec in mariadb