Make daily_update.sh executable
Use union all, fix the count in getHist