Datalog: a basis for Active Object-Oriented Databases