add ci_legacy_packaging database interface