pH control in biological systems using calcium carbonate