update chat with angularjs, socketio, mysql