- Check if pool already exists before creating a new one
- Set pool size limits (min=2, max=10) to prevent exhaustion
- Multiple calls to init_db() were creating new pools without
closing old ones, leading to "too many clients" errors
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>