JNM MATCHED LOCAL BACKEND UPDATE

This backend was built from the exact backend(3).zip supplied on July 14, 2026.

REPLACE IN YOUR EXISTING BACKEND FOLDER:
  server.js

ADD THESE FILES TO THE SAME BACKEND FOLDER:
  v33-menu-controls-routes.js
  v34-launch-routes.js
  v34-launch-sync.sql
  v35-backend-test-routes.js
  v35-backend-test-gate.sql

Keep your existing .env, node_modules, package.json, PostgreSQL database, and uploads folder.

On the next `node server.js` startup, the server will:
  - preserve the existing parent/student login routes;
  - create the shared activity/submission/menu/profile tables if missing;
  - stop creating Grade K-5 preview students;
  - mark KDG-001 and G1-001 through G5-001 inactive without deleting history;
  - backfill parent ownership from students.user_id;
  - start only after PostgreSQL setup succeeds.

Expected console line:
  Matched family synchronization: ready

Do not run a second server on port 5000. If EADDRINUSE appears, close the older
server window first and then run `node server.js` again.
