A lightweight timestamp-based method for data replication in database