basic working idb