Multiple updates
Merge pull request #17 from mtrdesign/master

Multiple minor updates - most notable enabling trunc SQL, used by the date hierarchy filter in the admin