Mock IndexedDB database for testing