The backfill script seems to be ignoring the DATABASE env variable and defaulting to the (default) Firestore instance.
I believe this is because the current implementation uses admin.firestore(), which doesn't support the named database selection context we need here. We should update this to use getFirestore(app, DATABASE_NAME) to ensure the backfill targets the correct database instance.