copy paste error added cursor instead of uuid for the ID of last record.