Add a pgrep check before starting mysqld
Poll database before attempting to perform upgrade.

- Seed databases only on zero-node
- A lot of refactoring

[#78655542]