fix length counts
fix report_id in where clause
make sure to use a DictCursor
made more progress on the picks, highest_ratio and least_correlation is working