Prepare client for Replica Set or single node.