Add a column to the database to store the http code.  Also restructured the database upgrade segment so that it makes more sense.