added postgres section to default config
fix perms