Refactor db/index.ts to use lazy initialization via Proxy pattern. This prevents the database from being accessed at module import time, which was causing Next.js build failures in CI/CD environments where no database file exists. The database connection is now created only when first accessed at runtime, allowing static site generation to complete successfully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>