PHP debug wrapper for MongoDB