update for speed-update #114
improving stability of mysqli for long-execution