 ttl =         1000  * 60  * 60  * 24 * 30
 ttlInterval = 1000  * 60  * 60  * 4
 for translator of Translators.byName
-  DB.schemaCollection(translator, {
+  coll = DB.schemaCollection(translator, {
     indices: [ 'itemID', 'exportNotes', 'useJournalAbbreviation' ],
     schema: {
       type: 'object'

    required: [ 'itemID', 'legacy', 'skipChildItems' ]
  }
})

###
  TODO: for this to work, an object must be updated when it is fetched

})

DB.loadDatabase()
METADATA = 'Better BibTeX metadata'

DB.remove = (ids) ->
  query = if Array.isArray(ids) then { itemID : { $in : ids } } else { itemID: ids }
