We experienced an issue that the Postgresql figaf-db did not respond when trying to deploy Figaf Tool.

For application 'xxx-figaf-app': For service 'figaf-db': Service broker error: Service broker backing-services-broker-postgresql-db-cf-xxx failed with: Service binding could not be created: connect ECONNREFUSED 10.16.1.1.1:5858
It was not possible to figure out what the reason was. To fix it we tried to change the Postgresql service
Then we pressed next and changed the maintenance window
Then we run cf deploy command again and see the app running.
Next time a good idea may be to create a service key for the database as described
here. Then check the health of the database.