Added API to update records in batches