Updated replication scripts for phptimestore