trying to make db work