shared object to perform mongodb-like queries against raw bson