Use updated members in a few other places
Use updated members in a few other places

Set cachedscsn with getHandle
Stream the scsn now for logging rather than using text()
Check the scsn is valid before updating the database in updatesc() - this might actually be a bug fix, old code would have stored it without checking.

Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,Acidburn0zzz/sdk,meganz/sdk,Acidburn0zzz/sdk,meganz/sdk,meganz/sdk,meganz/sdk,Acidburn0zzz/sdk