hooked db helpers