event update database implementation