An ECA Rule Rewriting Mechanism for Peer Data Management Systems