Updated SQL for retrieving terms of use in service document to select the rows with the latest last_updated values.