Subject says it all. I've tried both dumpsec and Sysinternals
Accessenum. Are there any similar programs along these lines?
Ideally something whose output is suitable to insert directly into a
relational db.

Failing that, has anyone seen a site with some background info on how
to roll your own? I know of the various api functions but would like
some higher level info on how to put them to good use.