Query now updates columns based on how the user selects data.