Update activity query