Add Database query log.