Eloy - sorry about the delay -- got really tangled up with the db plugins on auth and enrol and subsequent accesslib issues...
I've merged my half-breed patch into HEAD. And I'm more than happy woth the proposed
HEAD -> xmldb-ize -> backport to 1.8
And once it's there, I'll merge my auth/db and enrol/db changes into