Fix unit tests to work with latest SQL.
Fix handling of "most recent" query, which should not execute a count
query first.
Tweak delimiters to avoid problems loading with psql.
Also process monthly aggregate data.
Add comment re plv8 init.