Database upgrader functionality.