Modifications in sql upgrade

Signed-off-by: vinish <vinish@zhservices.com>