Began working on putting the query results into an index table (hash table style), there are still problems with making sure it went in correctly.

- Added a for loop to put the results into the table with the index.

- Added a loop to iterate the table to check if it was done correctly.