                         where : {'id = $': obj.id}
                         cb    : cb
                 (x, cb) ->
-                    expect(x).toEqual({"delete": {id:obj.id, project_id:projects[0]}})
+                    expect(x).toEqual({action:"delete", old_val:{id:obj.id, project_id:projects[0]}})
 
                     # and the second
                     db._query


                (x, cb) ->
                    obj2.id = db.sha1(obj2.project_id, obj2.path)
                    expect(x).toEqual({insert:obj2})

                    # now delete the first entry (not through file_use, but directly)
                    db._query

                (x, cb) ->
                    # note how chat gets recursively MERGED IN -- not replacing users. (so tricky under the hood to implement...)
                    obj.last_edited = t2
                    expect(x).toEqual({action:'update', new_val: obj})

                    # add a second file_use entry
                    db.user_query
