                         return callback()
 
                 else
+                    doc.creationDate = fileLastModification
+                    doc.tags = []
                     newId = uuid.v4().split('-').join('')
                     log.info "Creating file doc: #{relativePath}"
                     db.put doc, newId, (err, res) ->

                if doc.name is fileName and doc.path is filePath
                    existingFileId    = doc._id
                    existingFileRev   = doc._rev
                    existingBinaryId  = doc.binary.file.id
                    if new Date(doc.lastModification) >= new Date(fileLastModification)
                        log.info "Unchanged file: #{doc.path}/#{doc.name}"

                            callback()
                        else
                            # Fetch binary via CouchDB API
                            log.info "Downloading binary: #{path.join doc.path, doc.name}"
                            client.saveFile binaryUri, binaryPath, (err, res, body) ->
                                console.log err if err?

