for (i = 0; i < (int)db->count; i++)
TAILQ_INSERT_TAIL(&db->pkgs, pkgs[i], entry);
free(pkgs);
return;
}