Make saveToDB() use SwatDB::insertRow() and SwatDB::updateRow() and properly retrieve the id of the saved row when possible.
Make saveToDB() use SwatDB::insertRow() and SwatDB::updateRow() and properly retrieve the id of the saved row when possible.


svn commit r4963

silverorange/swat,silverorange/swat