updated views to use ansi standard

replacing `month(date)` syntax with ansi `extract(month from date)` 

sql code integrated into migrations here: https://github.com/PecanProject/bety/pull/11