[HACK] Allowing MySQL to keep solver connection alive.

* Prevents infinite loop of "interrupting" a thread stuck doing
  MySQL calls
* Doesn't correctly enable thread to send keep-alives when needed