Performance optimization of intervalWriter.
Combine string first, then issue only ONE PQexec().
Before the optimization max observed performance was 400 values/s now about 40000.