Update scan queries to use count(distinct s.id)

for bin in `cat $1`
do
  echo "Making tables for BIN $bin"
    #time ./pangen sha1 $bin 4 500 2000000 $bin
    time ./pangen sha1 $bin 4 400 5000000 $bin
    #>> "$1.log.txt"
    filename="sha1_"4"_500x2000000_$bin.rt"
    #./rtsort $filename
done