Changed database detection to using event callbacks (issue #7: background threads must not change UI under Linux); small UI changes for better Linux view.