Can now handle context-sensitive items. Will get a primary key constraint violation if an item has more than one context. Need to figure out whether we need to worry about that.