Changed object_id to a primary key.