Decided that automating a TM server db upgrade is unmanagable with the current implementation.  You need CM server up before you can run the upgrade.  KM db upgrade uses a GUI so not possible anyways.