fix histogram wierdness, no fudging max just checking bounds, implement percentile for mongo