added txt db hooks