don't attempt to ping the database if we are not connected to it