srm: Do not use SQLException unless its about JDBC

SQLException is the main exception used by JDBC code. The SRM in many
places declares SQLException in code completely unrelated to JDBC, in
code that doesn't even throw SQLException, or uses it to propagate
non-JDBC errors.

This patch addresses this problem, mostly by removing the declaration
of SQLException in the throws clause of many methods. In some cases
SQLException is replaced by another exception, eg IOException or
SRMException.

Target: trunk
Require-notes: no
Require-book: no
Acked-by: Paul Millar <paul.millar@desy.de>
Acked-by: Dmitry Litvintsev <litvinse@fnal.gov>
Patch: http://rb.dcache.org/r/5953/