manage buckets in key-value store