Query IndexedDB like MongoDB