Cleaned up pymongo connections.