Save function properly creates a new database entry for a new object