added benchmarking and capture to db