Calcium transport in contraction and secretion