add database and refact Clear.php