Updated for support PHP Mongo driver > 1.5