socket.io interfacing added for crud, still todo is subscribe