adding distinct to mongo query