add record and search record.