Changed behaviour for save(). It now does an insert or update, inserting also entries with a given ID when not found in the database