Removing the direct SQL instructions from Statistics module
into Database. To do that we had to modify as well modules WebUI and
contentlibrary