HomeServe interview question

How would you resolve database lock ?