working when I took socket.io stuff out of db call. now testing with it