(#3228) - refactor idb
(#3229) - fixes for nodewebkit