         cb(undefined, db)  # HACK -- might not really be initialized yet!
         return db
     else
-        db = require('./smc-hub/rethink').rethinkdb(hosts:['db0'], pool:1, cb:cb)
+        db = require('./smc-hub/rethink').rethinkdb(hosts:db_hosts, pool:1, cb:cb)
         return db
 
 # get a connection to the db

# make the global variable s be the compute server
global.compute_server = () ->
    return require('smc-hub/compute-client').compute_server
        db_hosts:['db0']
        cb:(e,s)->
            global.s=s
console.log("compute_server() -- sets global variable s to compute server")

    require('smc-hub/storage').activity(opts)

console.log("activity()  -- makes activity the activity monitor object")

global.delete_account = (email) ->
    require('./smc-hub/rethink').rethinkdb
        hosts:db_hosts
        pool:1
        cb: (err, db) ->
            if err
                done("FAIL -- #{err}")
                return
            db.mark_account_deleted
                email_address: email
                cb           : (err) ->
                    if err
                        done("FAIL -- #{err}")
                    else
                        done("SUCCESS!")
console.log("delete_account 'email@foo.bar'  -- marks an account deleted")
