Making SQL like Structure for IndexedDB