 
     ### Helpers ###
 
-    initLogCouchdb = ->
+    initLoginCouch = ->
         data = fs.readFileSync '/etc/cozy/couchdb.login'
         lines = S(data.toString('utf8')).lines()
         return lines

            else if exists
                if process.env.ENV_VARIABLE is 'production'
                    addCouchdbAdmin (err, body) =>
                        logCouchdb = initLogCouchdb()
                        if not body.admins? or 
                                body.admins.names[0] isnt logCouchdb[0]
                            addCozyAdmin (err) =>
                                if err
                                    compound.logger.write "Error on database" +

                else
                    logFound()
            else
                db_create()

    db_create = ->
        compound.logger.write "Database #{db.name} on" +
                " #{db.connection.host}:#{db.connection.port} doesn't exist."
        db.create (err) ->
