Fix: return types in idb