database rework, login-dialog