That might be of interest to some: I have described a possible implementation of a flexible combobox autocomplete mechanism using Python Flask and Postgres as a backend:

http://cjauvin.blogspot.com/2012/10/...g-pattern.html