Updates to log-retrival scripts. + updated sql and linq-queries for driftsproeve.