Fixed issues with postgres user permissions