Fix errors on inactive nodes.

Previously the inactive nodes in a cluster would still attempt to call the
database class and create their DBs and users, which of course, would fail,
since there was no mysql running on those nodes.  This patch simply leverages
the same info as our (soon to be cleaned up) execs to determine if those
database calls should happen or not.