1. Add db index for subject_artifact_id in table artifact_accessory. 2. Optimize the SQL of excluding the accessory for artifact count. Signed-off-by: chlins <chenyuzh@vmware.com>