clean up summary_by_month sql for readability