Fix upsert function to actually work (iknowrite?)

 * Closes #49