Database privileges

- Default database privileges for a locked down appliance with remote workers
- fix permissions for certificates directory