Added distinct() to collections, added transform capability to query options