Correctly store the model in Dbafs::addResource() (see #7440)