return the correct URI when inserting