intial db work