Added function which clear logs in db