Evolution of the relation between the mass accretion rate and the stellar and disk mass from brown dwarfs to stars