added database clear method