The $sql_query parameter is rendered on the UI as query message above the table. This code sets the parameter to remembered query or user executed query.