add a connectivity check for mysql