VAT-88 Removed hardcode query during upgrade.