You might check out Sleepycat Software. They have products that should fit your needs (I think -- not entirely sure how complex "select"s can be), but I've no idea of the cost or licensing.
_________________________
Bitt Faulk