Store search history in Firebase too