Change to lazily evaluate checks for IDB, so if you are trying to make an in-memory database it will work with node.js