100% coverage for packaging/db.py