select package_id from apm_packages where package_key in $package_keys