             table : required
             delta : 1
             cb    : required
-        query = "update counts set count=count+? where table_name=?"
-        @cql query, [opts.delta, opts.table], opts.cb
+        query = "UPDATE counts SET count=count+? where table_name=?"
+        @cql query, [new cql.types.Long(opts.delta), opts.table], opts.cb
 
     # Get count of entries in a table for which we manually maintain the count.
     get_table_counter: (opts) =>

        async.series([
            # remove account_id from the project's set of users (for the given group)
            (cb) =>
                query = "UPDATE projects SET #{opts.group}=#{opts.group}-{?} WHERE project_id=?"
                @cql(query, [opts.account_id, opts.project_id], cb)
            # remove project_id from the set of projects (for the given group) for the user's account
            (cb) =>
                query = "UPDATE accounts SET #{opts.group}=#{opts.group}-{?} WHERE account_id=?"
                @cql(query, [opts.project_id, opts.account_id], cb)
        ], opts.cb)

    # SINGLE USE ONLY:

        async.series([
            # add account_id to the project's set of users (for the given group)
            (cb) =>
                query = "UPDATE projects SET #{opts.group}=#{opts.group}+{#{opts.account_id}} WHERE project_id=?"
                @cql(query, [opts.project_id], cb)
            # add project_id to the set of projects (for the given group) for the user's account
            (cb) =>
                query = "UPDATE accounts SET #{opts.group}=#{opts.group}+{#{opts.project_id}} WHERE account_id=?"
                @cql(query, [opts.account_id], cb)
        ], opts.cb)

    remove_user_from_project: (opts) =>
