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