HomeServe Interview Question

How would you resolve database lock ?