add records into document