Trying to get socket.io working. Also added sql queries.