Added maximum MySQL connection time

Fixes idle timeout bug