added support for mysql multi deployments