Fix incorrect function names.

Global search & replace incorrectly changed these names in
4a9da28ace680369340ef0310e8c7cd6cdd46185, and it didn't work.

Change-Id: I7465f5e52a6dc3ad3475ac66e77847ec66f8b7d8
Fix incorrect function names.

Global search & replace incorrectly changed these names in
4a9da28ace680369340ef0310e8c7cd6cdd46185, and it didn't work.

Change-Id: I3e815bcd21d6ad0070c5c49c474b86b2c205c743
datastores work

Ensure we update the datastore after we update the database object.
Where possible.

This means if something goes wrong updating the database object we
haven't tried to update the datastore.

Don't call the datastore save method unless we really have to.

Don't log Deleted messages, no point, these messages get deleted
when object is deleted.

Change-Id: I30b368d18d9e843e6778456b9b669c833295d9d9
Fix calls to super.

Using super(self.__class__, self) is wrong. Need to use super(name,
self).

Change-Id: I927862c8aa908e55bc1b20835662f219ee8e8021
Set alters_data as appropriate.

Change-Id: Ic5571782c09bac62b4f1af90b0656b539aae0c54