Added repository upgrade script