aidr-tagger-api:  fix sql for training-data screen (duplicate rows issue).