Implementing clustering in MongoDB