Please do this 'DHT' select once, and simply use its tracker_id in all subsequent inserts. I.e. add its tracker_id to the found_torrent_tracker_map_list.
Use torrent.is_private() to choose between 'DHT" and 'No-DHT'