insert or update last writen revision