logging db acces latency