better name for spec subject:  @writer ---> @writable
Bugfix: add_record now updates the indexes. (spec needed)