Add BSONDocument class for supporting mongo operators.