configData.database?.url was removed from the prod configmap (database
credentials belong in secrets), but the code only checked configData.
Add secretsData.database?.url as a fallback so prod can supply the URL
via the gateway-secrets Secret.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>