Correction to Pg statement in upgrade script
Correction in upgrade script