Keep a record of inserted ids so that we can be sure we're using one of the records which has been already added