db linked class checks and reports SQL statement errors