Adds upgrade script to upgrade table