problems logging in db; OnOffView threading fix;