Adding code for backend. CRUD operations