refine getUnindexedItems method in ItemsDAOImpl