Schema upgrade type

Add an upgrade target for DatabaseMaster, that should be used for any db-schema changes.

When the machine agent runs the upgrade steps now, it also checks to see if it is the master, and if so, uses this to determine the steps.
Given that st and agentConfig are used to calculate isMaster, this work could be done inside runUpgrades instead of adding an extra argument to the func.