Added migration to add the base uri for triples, added the deletion of a resource before putting it