Added DB.restore.
Changed getStoredValue() to throw SQLException and getRefRec() to 
return current value if not stored.
Changed Ref.setValue to throw SQLException.
Added possibility of overridding formats in Cx.
Changed SQL.add to vararg and added group by support to Query.
Renamed DB to Database and changed registration of defs.
Renamed TimeCol to DurationCol.