Added updating of records. Tests pass locally.