Text this: Application of active query languages to the implementation of business rules