Fixes #14
keep track of existing id to prevent new objects being created on subsequent saves