Added IndexedDB database for store searchType preference.