refactored out merges save/get to records.js