Density and confinement time limits of Ohmically heated tokamaks