diagnostics checks properly for database connectivity.