add database and socketio