                 callback = params
                 params = {}
             dbHelpers.db.query 'binary/all', params, callback
+        get: (key, callback) ->
+            getByKey 'binary/byChecksum', key, callback
 
 
     # Create all required views in the database.

db.setMaxListeners 100

fs.ensureDirSync config.dir


module.exports = dbHelpers =

            dbHelpers.db.query 'folder/all', params, callback

        get: (key, callback) ->
            getByKey 'folder/byFullPath', key, callback

        upsert: (newDoc, callback) ->
            key = "#{newDoc.path}/#{newDoc.name}"
