added a function to get the intersection of multiple arrays. This is an intermediate step to reading records from the database:

1) query database with an object
2) check to see whether each key in the object is indexed
3) find every uid that matches any index
4) find the intersection - ie find every uid that matches EVERY index
5) retrieve records from the datastore that match those uids