Fixed BsonObjectId Generation issue.. added dynamic query