Fixes issue on Unraid/NAS where SQLite WAL mode fails with "unable to open database file" error. Now attempts WAL mode for better concurrency, but gracefully falls back to DELETE mode (SQLite default) if unavailable.
Maintains backward compatibility: existing users with working WAL continue to use it; users on network storage get a working fallback.