Add add_record and index + refactor