Change decoding zo also process HTML entities so strings fetched from the database can be decoded to UTF-8. Create Encoding function that encodes UTF-8 data to the format used in the database. Add the abilitiy to sort the result in a like alphabetical fashion to populateScanResult, add the ability to use a start word for displaying the scan from this word onwards, add a function to detect wildcard in the term searched for.
Fix logig for scan: scanClause needs to be an index at least with an optional start word. If thi is not given, skip searching.