saves new entries as objects and updates existing entries