Add clear() method to clear database.
BugFix: clear() should be called after database start.