Abstract typeahead logic and display.
- Sort the ordering
- standardise db name