CRUD based on socket