added distinct query
switched to java driver V2.12.1