Update data-controller in preparation for sql query to be written