Figured out how to pass selection and DB to query.  Trying to figure out how to unpack into a query triple.