add record and documents