Adds write in replicaserver