Replication in Distributed Databases using Triggers