Implement SearchHistoryManager and related Database

Add SearchHistoryManager and implement related methods with Database

Bug: 111863038
Test: atest DocumentsUITests
Change-Id: If6fe20290d1db6be6aa3f7fddcc90715d9ad9272
3 files changed