event update sql fix