Correct error in db upgrade script