Add upsert method on mapper to fix #49
Merge pull request #52 from vlucas/upsert

Add upsert method on mapper to fix #49