Put ping command in its own class. Cleaned up MySQL error messages to simple messages.