Fixed database timeout