Make db work independent of cwd