Fixed mysql errors with updating repeating events.