Move creation of resource to update table

This way if for some reason the resource row was not created it will be.