Make tagging.resource_* columns integers and remove the id column in favour of a composite primary key