Add fix for permission problem for Postgres