improve MongoDB client