db interfaces for bucket computation