Add Mongo connection and replication.