Final updates to permissions in setup bash script.
fixed batch delete of records