- the db is now exclusively locked for one thread - the charts read from the db and analyze data in a background thread + some small cleanups