Change more classes to use SQLException.