     database = undefined
     async.series([
         (cb) ->
-            require('smc-hub/rethink').rethinkdb
-                hosts : DB
-                pool  : 1
-                cb    : (err, db) ->
-                    database = db; cb(err)
+            get_db (err, db) ->
+                database = db
+                cb(err)
         (cb) ->
             exports.mount_snapshots_on_all_compute_vms
                 database : database

                        cb()
        (cb) ->
            dbg("connect to database")
            require('smc-hub/rethink').rethinkdb
                hosts : DB
                pool  : 10
                cb    : (err, db) ->
                    database = db
                    cb(err)
        (cb) ->
            dbg("create synchronized table")

            # Get every project assigned to this host that has done a storage request starting within the last two hours.
            age   = misc.hours_ago(2)
            query = database.table('projects').between([host, age], [host, database.r.maxval], index:'storage_request').pluck(FIELDS...)
            database.synctable

###
Must run as root:

s = require('smc-hub/storage');

# make sure everything not touched in a year has a backup as recorded in the database...
# (except use limit to only do that many)
