example for loading resources from the chain to a local db