Set mysql server status

Using the fact that the statement handler execute will return undef on
an error, we can make a crude assumption about the status of the server
(if the statement fails to execute there is probably a problem with the
server).