Ask Connection whether or not it has timed out.

Although this introduces overhead in the form of extra packets being sent, it will result in all SQL connections dead from inactivity being restored.
Reuse Connection object in getPlayerID

This avoids the overhead of two isValid() checks.
Merge pull request #2 from riking/sqlrecon

Reconnect to the SQL database when the connection times out.