Add Peter's SQL complaint script (bug #1482)