Create KVStoreModel atomically to avoid integrity error