Fixes for the remove_mysql task.