history: clearing database