add check-old-data script, add parameters to delete-old-data