Added db hookup and additional logs.
only log performance.