sql update script fix