remove update thread and do in main ui to prevent db locks