Added a clearQueryLog method to the database connection.