Upgrade pymongo usage from deprecated connection to client
LMS-1551