The GPR System: An Architecture for Integrating Active and Deductive Rules for Complex Database Objects