db work finally