Since it seems you are not updating a column on the database records to mark them as processed, your reader should have the "saveState" property set to "true".