hop of those help? You need to add port: 5433 to your database.yml. The default PostgreSQL port is 5432, but your pg_lsclusters command says the server is running on 5433. This is why Rails can’t find a server running on localhost:5432.
Could not connect to server: Connection refused (0x0000274D/10061) - PostgreSQL on remote server