Added firebase syncing for the typeahead.