update the Mongo class to allow for conditionally pinging the server during isconnected

this keeps you from killing your database from a different thread that's
monitoring the connection. this is a good thing. note that there is
no default paramater here, so this change may break existing code.