Fix mysql copy script