Simplify the records service in main.js