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

                else
                    logFound()
            else
                console.log("create")
                db_create()

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


    ### Helpers ###

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