Change to db dir correclty.