Fixed a bug in the percentile aggregator. Added writeBufferSize to SQL backend.