adding attributes to mongo query