Refactor resource initialisation from DB

Initialise the resource unconditionally to begin with, and use a separate
method to load data from the DB representation.

Change-Id: Ief7c0fb78944dafb1ff30c82647404178d549981
Merge "Refactor resource initialisation from DB"