Implementing CRUD API in backend