Use the UpsertResult class so we can check if it was a update or insert
Fix typehint for upsert method
Merge pull request #6 from christiaan/upsert_result

Use the UpsertResult class so we can check if it was a update or insert