How to install a Database on local server?

How to configure or install the PostGre SQL on windows 10 and set it up with my blynk project?
I want to store my data from arduino and rpi in a database. How can I get it?
I get this on my postgres.log file now:

    DB url : jdbc:postgresql://localhost:5432/blynk?tcpKeepAlive=true&socketTimeout=150
    20:32:42.990 - DB user : test
    20:32:42.990 - Connecting to DB...
    20:32:45.240 - Not able connect to DB. Skipping. Reason : Failed to initialize pool: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

ya pls help I’m also trying that with NODE MCU in windows 10