Move the old manage script to _legacy, and add a new _flask version with modern Flask tooling. Decide which one to call via pvc-api-db-migrate using /etc/debian_version call.