Modified query for new user csv