Improve replace method where no entries exist for primary key

Signed-off-by: Eli Skeggs <skeggse@gmail.com>
Add extended example

Signed-off-by: Eli Skeggs <skeggse@gmail.com>
[0.1.1] version bump

Signed-off-by: Eli Skeggs <skeggse@gmail.com>