Small performance tweaks for backup code.
Avoid `select *` to safe-guard against future alembic_version schema changes.