loading and updating records