skipping deleted records

records with a deleted status are skipped

previous error:
ERROR    expected a character buffer object