Cloud SQL SSL Handling Fix and Improved Startup Diagnostics

Database connection reliability has been improved through fixes in SSL handling and startup diagnostics.

Key changes include:

These updates provide clearer failure signals and reduce ambiguity during deployment and runtime, making debugging and operational monitoring more deterministic.