server side of trainer name autocomplete