updated functions to user SwatDB::query where it made sense, to cut down on duplication of Exception code
updated functions to user SwatDB::query where it made sense, to cut down on duplication of Exception code

svn commit r1512

silverorange/swat,silverorange/swat