JAVA-812: Only set $readPreference on a query if the read preference is not primary.
This lets the slaveOK bit have precedence if it's set.
JAVA-790: Change index options from {unique: 1} to {unique : true}