um, oops.  prior commit wasn't the bomb

My prior commit wasn't really doing anything.  this one really does
the where clause stuff and all that.  broke my api, now I pretty much
require req,opts type of call.  Needs refactoring, but it works for
now