Added beforeInsert to subscription, enabled auto update of ES