             account_id  : required
             customer_id : required
             cb          : required
-        @db.table('accounts').get(opts.account_id).update(stripe_customer_id : opts.customer_id).run(opts.cb)
+        @table('accounts').get(opts.account_id).update(stripe_customer_id : opts.customer_id).run(opts.cb)
 
     get_stripe_customer_id: (opts) =>
         opts = defaults opts,
             account_id  : required
             cb          : required
-        @db.table('accounts').get(opts.account_id).pluck('stripe_customer_id').run (err, x) =>
+        @table('accounts').get(opts.account_id).pluck('stripe_customer_id').run (err, x) =>
             opts.cb(err, if x then x.stripe_customer_id)
 
 

            groups      : required  # array of elts of PROJECT_GROUPS above
            cb          : required  # cb(err)
        if not @_validate_opts(opts) then return
        @db.table('projects').get(opts.project_id)('users')(opts.account_id)('group').run (err, group) =>
            opts.cb(err, group in opts.groups)

    # all id's of projects having anything to do with the given account (ignores

            columns    : PROJECT_COLUMNS
            cb         : required
        if not @_validate_opts(opts) then return
        @table('projects').get(opts.project_id).pluck(opts.columns).run(opts.cb)

    update_project_data: (opts) =>
        opts = defaults opts,
