made some changes to ensure mysql con was threaded
only connect to db at plugin start and beginning of round