Proper var naming
Improved idb
Update: idb