add query unique interface
Merge pull request #10 from ledbettj/query_unique

add query unique interface