This may be a little bit off-topic but ... arent these xql files just one step into the direction of creating something like a persistence layer between the db and acs application objects (like users, groups etc) ?
Ars Digita did (or tried do) something like that for their acs-java. Are there plans for something like that (in the remote future of course) in Openacs ?