update autocomplete sql