Moved metapack code to metapacks.py; moved repair images code to
db_utils