Added a 'keep_alive' provision for mysql timeout scenarios
Added a 'keep_alive' provision for mysql timeout scenarios