Views of queries refactored. Also we have added the save of the results count and the last run of the query when we execute the query from the list of queries.