Title: A rule rewriting mechanism for peer data management systems