#1 added: query results and some formatting to it.