socket (socket.io) and database communication now works properly. I have to think about the delay, since the broadcast (update to other clients) is in the callback of the db, this takes about ~1-2 sec. Perhaps this can be optimized later on