Added checking for dead SQL Servers

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