Node.js / Postgres / Highcharts time-series analytics