Fix issue with permission denied to postgres user. Thanks @ygt-stephenl