added upgrade script

Fix: added upgrade script