fix memory safety issues and improve code quality
- use optionals instead of undefined for turso credentials
- fix use-after-free in extractRows (inline parsing in searchDocuments)
- log errors instead of silent catch {}
- use named constants (SearchCol) instead of magic numbers
- use std.Io.Writer.Allocating for proper json.Stringify compatibility
- remove unused struct definitions and empty close() function
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>