Initial implementation of multitenancy. Known issue: ensureIndexes()
needs to called somehow for multitenant collections.