Using Upsert() instead of Insert() and Update(). Closing #13.