This latest post teaches how to create an SQL autocompleter: http://gethue.com/build-your-own-autocompleter/