Modelling replication in NoSQL datastores