- Build async SQLAlchemy engine with PRAGMA journal_mode=WAL, foreign_keys=ON, and synchronous=NORMAL - Implement DownloadJob ORM model with protobuf mapping and state transition guards - Initialize Alembic async migrations and create initial download_jobs table schema - Add unit test suite in tests/test_db.py covering WAL pragmas, CRUD, and state transitions - Update todo.txt marking Priority (A) tasks complete
Generic single-database configuration with an async dbapi.