db.clear method added