db api design

Cool. SGTM.