Update function logout in model return row affected update token