Zip the /Library/PostgreSQL/8.4/data folder and put it on a file sharing site and PM me the link.
Once I've verified I can recover your database, we'll trash the /Library/PostgreSQL folder, dump the trash, restart the Mac, and then run the Resolve installer, and at the Installation Type step of the Installer, select Customize, then tick the PostgreSQL installer box and finish the install.
Assuming you are installing a current Resolve version, that will install PostgreSQL 9.5, which runs under Sierra.
Then I'll send you a database backup file which you can Restore into the new database.