Simple upgrade script.

Should do the job to handle the new alert settings system. Could do with
being tested though.