Make use of the ElggUpgrade object.