Issue #7: collate the search terms and db content for search