1. A method of operating on a database, comprising: selecting a plurality of computational operations, each associated with one or more of a plurality of relationships; processing a sequence of declarations associated with a database, each declaration including at least one entity and at least one relationship of the plurality of relationships; and for each declaration, performing on the declaration the at least one of the plurality of computational operations associated with the at least one relationship included in the declaration.