more db hooks