Check if a MySQL connection is valid before using it.
Sadly, the SQLite driver used by bukkit does not implement the isValid()
method, so adding a connection check for SQlite is not as easy.