CRUD functionality working