Extract appended ID from URI on insert