A first cut at porting crappy access java code to cleaner precompiled queries. It's not anywhere close to done, but it's the thought that counts.