Discarded SQL upgrade script