Figuring out strange sql failures during test runs