Fix: fresh install crashes on first boot (sessions table doesn't exist yet)
initializeDatabase() was called AFTER the session-store constructor, but
SqliteSessionStore queries the sessions table during construction. On a
fresh DB (new self-host/instance) that table didn't exist yet ->
"no such table: sessions" -> crash-loop on the very first boot. Existing
instances already had their schema, so this went unnoticed.
initializeDatabase() is now moved to before the session middleware.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@…>