def _write_results(self, db_count, output_path):
        '''Write the table to the output_path directory
        
        db_count: dict
            Contains samples as entries. The value for each sample is another 
            dictionary with HMM as the key, and number of hits as values:
                {"sample_1":{HMM_1: 12
                             HMM_2: 35
                             HMM_3: 1258
                             ...}
                 ...
                }
        
        output_path: str
            Path to output file to which the resultant output file will be 
            written to.
        '''
        
        logging.debug("Writing search otu table to file: %s" % output_path)
        
        output_dict = {}
        
        for idx, value_dict in enumerate(db_count.values()):
            for database, count in value_dict.iteritems():
                if database in output_dict:
                    output_dict[database].append(str(count))
                else:
                    output_dict[database] = ['0']*idx + [str(count)]
            
            for key, item in output_dict.iteritems():
                if len(item) == idx:
                    output_dict[key].append('0')
        
        with open(output_path, 'w') as out:
            out.write('\t'.join(["#ID"] + db_count.keys()) + '\n')
            for key, item in output_dict.iteritems():
                out.write("%s\t%s" % (key, '\t'.join(item)) + '\n' )
Write the table to the output_path directory
        
        db_count: dict
            Contains samples as entries. The value for each sample is another 
            dictionary with HMM as the key, and number of hits as values:
                {"sample_1":{HMM_1: 12
                             HMM_2: 35
                             HMM_3: 1258
                             ...}
                 ...
                }
        
        output_path: str
            Path to output file to which the resultant output file will be 
            written to.