Tightens up database connection errors so they stay concise, and logs
internal error details server-side instead of returning them in API
responses.
Adds tests covering the error output.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>