Add checking for MySQL servers that have gone away / have errors

This should prevent players points being wiped if the SQL server has an error or goes away.