Database benchmarking code