Getting autocomplete to play nice with the db