bit of documenting and update daily script to use new daily average sql view
add sql