Corrected handling of uniques; added queries for total-taxa stat