endpoints working for insert