dies at $sql for testing