Failed to connect to default database

i’m stuck with this issue. can neither update nor revert to my previous working instance of kobotoolbox setup on my own server.

how do i fix this so that my data is not lost ?