Add mysql query timeout of 5 mins