Ap db work