Thanks for the example, AnyData is super-cool. Looks like you have similar ideas and your module can do similar things as mine. I think I'll take your advice and get on to dbi-dev to see if I can get even more ideas and pre-existing solutions.
Though I will look at AnyData in detail later, does AnyData have an idea of joins? As TheOrb pointed out, right now my code is all joins and very little filtering -- but my next round of improvements will be addressing that issue. Looks like you have filtering worked out already.