Use batched writes to DB when saving packages from the mirror.