Unable to start Figaf App because of missing Database

Unable to start Figaf App because of missing Database

We experienced an issue that the Postgresql figaf-db did not respond when trying to deploy Figaf Tool. 
Also the Figaf app was crashed because of something. 

Once we ran CF deploy we got the error
Quote
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.