Add database upgrade code.