Don't display superseeded runs in query runs

Change-Id: I019b8c3cab1436de1913aca6415a8886e99421a3
Make sure that db connections are alive before being used

Should fix the MySQL connection gone away errors

Change-Id: I058bfb5dbb80d5ae4bdb2ed42c779815dd101eec