How to configure a master-slave setup in MongoDB