Database Search algorithm

Database Search algorithm

This returns either the results for whole search term (if successful) or AND all the words in the search term and try that