rename resource to link
drop resources table