Improve migration script and beigin to index things by month, not day.