Update tinydb.js with new implementation.