Populating the TableView
Query field implemented