PostgreSQL not working?

If you cannot connect to PostgreSQL, try this:
brew postgresql-upgrade-database
And restart PostgreSQL by running this:
brew services restart postgresql