wrong syntax in upgrade SQL