backend.py: Separate out the main work of `_update'.
authorMark Wooding <mdw@distorted.org.uk>
Fri, 23 May 2014 15:01:18 +0000 (16:01 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 24 May 2014 21:59:19 +0000 (22:59 +0100)
commit612419ac09c0def4b15b101cf0520a4d21bb9911
tree9670f6a52deaabb833d04b6889e92230f240989c
parent46eb5a384c3e7882e9d5339021c998c2f7d4d9b2
backend.py: Separate out the main work of `_update'.

This makes it easier to add other kinds of operations on the database
later.

Also check for errors, such as a missing record.
backend.py