Fix connection idle timeout

I fixed that problem with disconnecting on idle timeout. My solution is based on [official recomendation](https://github.com/felixge/node-mysql#server-disconnects) of node-mysql developers.
I'm not sure that fix is necessary for Model, but you can decide it on you own.