Some debugging stuff to figure out mysql crash