Fix MySQL timeout