HCSVLAB-916: Use SQL queries instead of Solr queries for verifying indexed items