Use resource_id_set to clear resource ID's

self.resource_id = None is used in several resources, which is wrong,
we should be explicitly updating the resource_id in the DB via the
resource_id_set function.

Change-Id: I41e1326fe7e1da364c8e6dd68f572df484beffb3
Merge "Use resource_id_set to clear resource ID's"