Cause of recent outages of the "confluence" project?

In the past, outages like this have been caused by database queries (initiated by our PHP scripts) that have ‘frozen’. Was this the cause of the two recent outages? If so, could you tell me which database queries failed, and if there’s any possible change/fix to the database (e.g., improved provisioning) that might avoid these problems reoccurring?

Could we please get an update on this? The frequent database outages here are very annoying.