Add mySQL timeout parameter and update cfg defaults

This adds the ability to override the session timeout parameter. It seems that in some cases this could be as low  as 60 seconds, which would make the mysql connection time out almost every transaction.