stathat now checks to see if we have been disconnected from the db
If we have the connection will restart..