Added query to select user data