adding names query