Retrieves generated keys on inserts or updates
Saving now modifies the input object with any generated keys