socket.io and database module finished