Refactored to support JOIN two files. currently only INNER JOIN