sqlite3 metadata.db <<'SQL'
BEGIN;
UPDATE entry SET sourceRotationDegrees = 0 WHERE origin = 1;
COMMIT;
SELECT COUNT(*) AS total_origin_1 FROM entry WHERE origin = 1;
SELECT COUNT(*) AS now_90 FROM entry WHERE origin = 1 AND sourceRotationDegrees = 0;
SQL
