Added code to pull queries from the db and tabulate them on the display. Also added a new table in the db