ap db backend