Added querylog class