Updated to include sync calls to return results of an insert or upsert