             cb(err)
         else
             new cassandra.Salvus
-                hosts    : ['10.1.3.2','10.1.10.2']  # TODO
+                hosts    : ['10.1.3.2']  # TODO
                 keyspace : 'salvus'                  # TODO
                 username : 'hub'
-                consistency : 1   # for now; later switch to quorum
+                consistency : 1
                 password : password.toString().trim()
                 cb       : (err, db) ->
                     database = db
                     cb(err)
 # TODO
-connect_to_database()
+connect_to_database (err) ->
+    if err
+        winston.info("Error connecting to database -- ", err)
+    else
+        winston.info("Connected to database")
+exports.db = () -> database # TODO -- for testing
 
 filesystem = (project_id) -> "projects/#{project_id}"
 mountpoint = (project_id) -> "/projects/#{project_id}"

# according to the database.  Updates the database to reflect success,
# when successful.

exports.destroy_snapshot = (opts) ->
    opts.cb?(true)

record_new_snapshot = (opts) ->
    opts.cb?()

        command : required
        cb      : undefined

    t0 = misc.walltime()
    misc_node.execute_code
        command     : "ssh"
        args        : ["storage@#{opts.host}", opts.command]
        err_on_exit : true
        cb          : (err, output) ->
            winston.debug("#{misc.walltime(t0)} seconds to execute '#{opts.command}' on #{opts.host}")
            opts.cb?(err)

# Make a snapshot of a given project on a given host and record
# this in the database.
