Configure Bun SQLite with WAL mode, foreign keys, and a shared database path for development and production.
Add migration commands and startup migration handling, check database connectivity in the health endpoint, and document configuration while excluding local database files from Git.