Adds upgrade script