bug: collection distinct can not use query, so use cursor distinct instead