new endpoints for update and insert records