Fixes db pths