fix db pathing and test race collisions