Bucket store API takes collections.

Instead of using string names of collections, directly pass around
collections as parameters.