A client reports that a critical optimization run is failing with a database timeout error. What are your immediate troubleshooting steps?