Added a clear db function for testing.