moved query from login-exec to dbadapter